package com.mingmen.canting.model;

import java.util.List;

public class GongYingDetailModel {


    /**
     * code : 0
     * message : 操作成功
     * time : 2020-08-29 11:05:47
     * data : [{"categoryId":"101","categoryName":"叶菜类","commodious":[{"commodityId":"1294154559627214848","commodityName":"辣椒","supplierId":"670","picture":"/uploadimg/2020-08-14/0d29095d-639e-4d3c-bfe1-36dc8ed9af38.jpeg","spec":"1","price":1,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294155500845809664","commodityName":"豆角","supplierId":"670","picture":"/uploadimg/2020-08-14/2584c371-f469-4841-b524-069af3ccf4e8.jpeg","spec":"1","price":3,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294156344282595328","commodityName":"红心萝卜","supplierId":"670","picture":"/uploadimg/2020-08-14/a4694076-1c38-46ec-85e7-97c308245235.jpeg","spec":"1","price":3,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294156567444733952","commodityName":"水萝卜","supplierId":"670","picture":"/uploadimg/2020-08-14/b3a341ef-5b55-425a-a4a0-e069130a9e6f.jpeg","spec":"1","price":3,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294156930998616064","commodityName":"甜椒","supplierId":"670","picture":"/uploadimg/2020-08-14/20e726d9-750c-4397-9e91-c10e08601617.jpeg","spec":"1","price":2,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""}],"secondCategories":[]},{"categoryId":"1","categoryName":"新鲜蔬菜","commodious":[{"commodityId":"1294151127608606720","commodityName":"菠菜","supplierId":"670","picture":"/uploadimg/2020-08-14/5f3c0f70-ccf1-4ad7-ac9b-55f1803e81f3.jpeg","spec":"1","price":5,"difference":0,"sales":1,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294151413366538240","commodityName":"番茄","supplierId":"670","picture":"/uploadimg/2020-08-14/0c1a1680-c39a-4868-bd5c-d3d876c6825b.jpeg","spec":"1","price":5,"difference":0,"sales":1,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294151708419047424","commodityName":"土豆","supplierId":"670","picture":"/uploadimg/2020-08-14/c221c251-d99c-42dd-8814-372577d0d3d7.jpeg","spec":"1","price":5,"difference":0,"sales":1,"isDefault":"1","defaultSupplier":"益农菜业"},{"commodityId":"1294154004846624768","commodityName":"茄子","supplierId":"670","picture":"/uploadimg/2020-08-14/e48c27aa-190f-443d-9a9f-37fc5305e637.jpeg","spec":"1","price":1,"difference":0,"sales":1,"isDefault":"1","defaultSupplier":"益农菜业"}],"secondCategories":[{"categoryId":"1","categoryName":"叶菜类","commodious":[{"commodityId":"1294151127608606720","commodityName":"菠菜","supplierId":"670","picture":"/uploadimg/2020-08-14/5f3c0f70-ccf1-4ad7-ac9b-55f1803e81f3.jpeg","spec":"1","price":5,"difference":0,"sales":1,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294151413366538240","commodityName":"番茄","supplierId":"670","picture":"/uploadimg/2020-08-14/0c1a1680-c39a-4868-bd5c-d3d876c6825b.jpeg","spec":"1","price":5,"difference":0,"sales":1,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294151708419047424","commodityName":"土豆","supplierId":"670","picture":"/uploadimg/2020-08-14/c221c251-d99c-42dd-8814-372577d0d3d7.jpeg","spec":"1","price":5,"difference":0,"sales":1,"isDefault":"1","defaultSupplier":"益农菜业"},{"commodityId":"1294154004846624768","commodityName":"茄子","supplierId":"670","picture":"/uploadimg/2020-08-14/e48c27aa-190f-443d-9a9f-37fc5305e637.jpeg","spec":"1","price":1,"difference":0,"sales":1,"isDefault":"1","defaultSupplier":"益农菜业"}]}]}]
     */

    private int code;
    private String message;
    private String time;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * categoryId : 101
         * categoryName : 叶菜类
         * commodious : [{"commodityId":"1294154559627214848","commodityName":"辣椒","supplierId":"670","picture":"/uploadimg/2020-08-14/0d29095d-639e-4d3c-bfe1-36dc8ed9af38.jpeg","spec":"1","price":1,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294155500845809664","commodityName":"豆角","supplierId":"670","picture":"/uploadimg/2020-08-14/2584c371-f469-4841-b524-069af3ccf4e8.jpeg","spec":"1","price":3,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294156344282595328","commodityName":"红心萝卜","supplierId":"670","picture":"/uploadimg/2020-08-14/a4694076-1c38-46ec-85e7-97c308245235.jpeg","spec":"1","price":3,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294156567444733952","commodityName":"水萝卜","supplierId":"670","picture":"/uploadimg/2020-08-14/b3a341ef-5b55-425a-a4a0-e069130a9e6f.jpeg","spec":"1","price":3,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""},{"commodityId":"1294156930998616064","commodityName":"甜椒","supplierId":"670","picture":"/uploadimg/2020-08-14/20e726d9-750c-4397-9e91-c10e08601617.jpeg","spec":"1","price":2,"difference":0,"sales":0,"isDefault":"0","defaultSupplier":""}]
         * secondCategories : []
         */

        private String categoryId;
        private String categoryName;
        private List<CommodiousBean> commodious;
        private List<?> secondCategories;

        public String getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(String categoryId) {
            this.categoryId = categoryId;
        }

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public List<CommodiousBean> getCommodious() {
            return commodious;
        }

        public void setCommodious(List<CommodiousBean> commodious) {
            this.commodious = commodious;
        }

        public List<?> getSecondCategories() {
            return secondCategories;
        }

        public void setSecondCategories(List<?> secondCategories) {
            this.secondCategories = secondCategories;
        }

        public static class CommodiousBean {
            /**
             * commodityId : 1294154559627214848
             * commodityName : 辣椒
             * supplierId : 670
             * picture : /uploadimg/2020-08-14/0d29095d-639e-4d3c-bfe1-36dc8ed9af38.jpeg
             * spec : 1
             * price : 1.0
             * difference : 0.0
             * sales : 0
             * isDefault : 0
             * defaultSupplier :
             */

            private String commodityId;
            private String commodityName;
            private String supplierId;
            private String picture;
            private String spec;
            private double price;
            private double difference;
            private int sales;
            private String isDefault;
            private String defaultSupplier;

            public String getCommodityId() {
                return commodityId;
            }

            public void setCommodityId(String commodityId) {
                this.commodityId = commodityId;
            }

            public String getCommodityName() {
                return commodityName;
            }

            public void setCommodityName(String commodityName) {
                this.commodityName = commodityName;
            }

            public String getSupplierId() {
                return supplierId;
            }

            public void setSupplierId(String supplierId) {
                this.supplierId = supplierId;
            }

            public String getPicture() {
                return picture;
            }

            public void setPicture(String picture) {
                this.picture = picture;
            }

            public String getSpec() {
                return spec;
            }

            public void setSpec(String spec) {
                this.spec = spec;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public double getDifference() {
                return difference;
            }

            public void setDifference(double difference) {
                this.difference = difference;
            }

            public int getSales() {
                return sales;
            }

            public void setSales(int sales) {
                this.sales = sales;
            }

            public String getIsDefault() {
                return isDefault;
            }

            public void setIsDefault(String isDefault) {
                this.isDefault = isDefault;
            }

            public String getDefaultSupplier() {
                return defaultSupplier;
            }

            public void setDefaultSupplier(String defaultSupplier) {
                this.defaultSupplier = defaultSupplier;
            }
        }
    }
}
